Configurable two-wire interface module

ABSTRACT

A telecommunications system and constituent two-wire interface module. The two wire interface module includes a logic component configured to communicate over the same pair of wires using different two-wire interface protocols depending on an input signal presented on a configuration input. This configurability allows the two-wire interface module to use the same two wires to communicate with a variety of other two-wire interface modules, even if those two-wire interface modules communicate using different two-wire interface protocols.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 60/550,638 filed Mar. 5, 2004, which is incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

1. The Field of the Invention

The present invention relates generally to high speed telecommunications systems. More particularly, embodiments of the present invention relate to a two-wire interface module that is configurable to use the same two wires to communicate using different two-wire interface protocols as desired.

2. Background and Relevant Art

Electronic and computing technology has transformed the way that we work and play. Many electronic or computing systems rely on a variety of components that cooperatively interact to perform complex functions. Such cooperative interaction often relies on the ability of the various components to communicate effectively.

There are many ways that electronic components may communicate. However, oftentimes two wires are used to communicate between components using a two-wire interface protocol. Although communication using two wires can be slower than communication over other interfaces, the use of two wires is preferred in some implementations because it often requires less chip or board space between components. In addition, the use of two wires often introduces less electromagnetic interference in the rest of the chip and/or board than many parallel wire connections.

In some conventional two-wire interface protocols, one wire is used to carry a clock signal, and one wire is used to carry a data signal. The clock signal is generally generated by a master component and is used by the master component as well as by one or more slave components. Either the master component or a slave component may drive data onto the data wire following the timing of the shared clock signal. Each communicating component understands a common two-wire interface protocol used to communicate, and thus may each function appropriately given the data. The data line of the two wires typically includes not only payload data, but also header fields that identify the operations to be performed (i.e., the operation code), the device identifier (in cases in which there may be multiple slave components to communicate with), and an address from which the data should be read or to which the data should be written.

One example of a prolific two-wire interface protocol is the I²C interface protocol. The I²C interface protocol may be used to transfer large amounts (e.g., kilobytes or megabytes) of data using a single corresponding header field. In other words, the header field is provided once, and the corresponding operation is understood to correspond to all of the data to follow. Since the header field is provided only once for large amounts of data, the I²C interface protocol is very efficient when communicating large amounts of data to and from memory.

Another kind of two-wire interface protocol includes a header field for each byte or word of data being transferred. Such a two-wire interface protocol will be referred to herein as a “guaranteed header two-wire interface protocol” since each byte or word or other small fixed amount of data is guaranteed to have its own header field identifying the operation to be performed. Since each byte or word of data has its own header field, there is significantly more bandwidth used per unit of data transferred. Most often, in fact, there are more bits transferred that represent header information than there are that represent actual data to be read or written when using such guaranteed header interface protocols. Accordingly, guaranteed header two-wire interface protocols are not typically used for reading or writing large amounts of contiguous data. Instead, guaranteed header two wire interface protocols are most often used for intermittently transferring small amounts of data as when, for example, occasionally setting configuration register values. A frame or communication in the context of a two-wire interface protocol is the header field and all of its corresponding data.

Various two-wire interface protocols have their respective benefits and disadvantages. Some two-wire interface protocols are more suitable than others for any given implementation. However, a two-wire interface module (i.e., a module capable of communicating using a two-wire interface) is conventionally configured to communicate over a single pair of wires using a single two-wire interface protocol. Accordingly, other two-wire interface modules that are to connect to that single pair of wires must also be capable of communicating over the wire pair using the same two-wire interface protocol. If the two-wire interface modules were not in agreement on the two-wire interface protocol being used, the communication would be lost.

What would be advantageous are mechanisms in which a two-wire interface module may be more flexible in communicating using different two-wire interface protocols depending on the application. This would provide more flexibility in the interconnection and communication between various two-wire interface components.

BRIEF SUMMARY OF THE INVENTION

The foregoing problems with the prior state of the art are overcome by the principles of the present invention. The principles of the present invention may include a telecommunications system and constituent two-wire interface module. The two-wire interface module includes a pair of wires for use in two-wire interface communications. The two wire interface module includes a logic component configured to communicate over the wires using different two-wire interface protocols depending on an input signal presented on a configuration input. This configurability allows the two-wire interface module to use the same two wires to communicate with a variety of other two-wire interface modules, even if those two-wire interface modules communicate using different two-wire interface protocols. This permit for greater flexibility in the architectural design and functionality of intercommunications between two-wire interface protocols.

Additional features and advantages of the invention will be set forth in the description that follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. These and other features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to describe the manner in which the above-recited and other advantages and features of the invention can be obtained, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

FIG. 1 schematically illustrates various interconnected two-wire interface modules including a two-wire interface module configurable to communicate over the same two wires using different two-wire interface protocols;

FIG. 2A schematically illustrates portions of an optical transceiver circuit in which a boot component controller is in boot mode in which the controller communicates with various components using two different two-wire interface protocols;

FIG. 2B schematically illustrates portions of the optical transceiver circuit in which the boot component is in passthrough mode in which the boot component permits communication to pass through between an external controller and the internal slave component;

FIG. 3 illustrates a circuit diagram of the core of FIGS. 2A and 2B in further detail;

FIG. 4 schematically illustrates a sequential data structure of a frame that defines an FSB two-wire interface protocol;

FIG. 5A illustrates an example frame in which the operation is to write or read using an extended field, and using Cyclic Redundancy Checking (CRC) and acknowledgements;

FIG. 5B illustrates an example frame in which the operation is to write or read without using an extended field, and using CRC and acknowledgements; and

FIG. 5C illustrates an example frame in which the operation is to write or read without using an extended field, and without using CRC and acknowledgements.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The principles of the present invention relate to a two-wire interface module that includes a logic component configured to communicate over the same pair of wires using different two-wire interface protocols depending on an input signal presented on a configuration input. This configurability allows the two-wire interface module to use the same two wires to communicate with a variety of other two-wire interface modules, even if those two-wire interface modules communicate using different two-wire interface protocols.

FIG. 1 illustrates an environment 100 that includes a configurable two-wire interface module 101. The environment 100 may be a telecommunications system, an optical transceiver, or any other environment in which two-wire communications may be useful. The configurable two-wire interface module 101 includes two two-wire interface wires 121 and 122 with which communication may be established with one or more other two-wire interface modules 110. The configurable two-wire interface module 101 also includes a configuration input 102 for receiving input signals that correlate to a particular two-wire interface protocol. A logic component 103 is configured to communicate over the wires 121 and 122 with the one or more other two-wire interface modules 110 using the two-wire interface protocol correlating to the input signal provided to the configuration input 102.

In addition to communicating over the wires 121 and 122 using a configurable two-wire interface protocol, the configurable two-wire interface module 101 may also communicate over other wires using a fixed two-wire interface protocol. For example, the configurable two-wire interface module 101 may communicate with the two-wire interface module 130 using a fixed two-wire interface protocol over wires 123 and 124.

The other two-wire interface modules 110 may include various two-wire interface modules that are capable of communicating using different two-wire interface protocols. For example, module 111A is capable of communicating using a first two-wire interface protocol along with similar modules as represented by the vertical ellipses 111B, and module 112A is capable of communicating using a second two-wire interface protocol along with similar modules as represented by the vertical ellipses 112B. For example, the first two-wire interface protocol may be I²C whereas the second two-wire interface protocol may be FSB, and vice versa. FSB stands for “Finisar Serial Bus” and is a Finisar-proprietary two-wire interface. More regarding the FSB two-wire interface is described below with respect to FIGS. 4, 5A, 5B and 5C.

The other two-wire interface modules 110 may also include other modules 113. The other modules 113 may be modules capable of communicating using a third two-wire interface module, or perhaps both the first and second two-wire interface modules. The configurability of the two-wire interface module 101 allows the module 101 to communicate with any one of these other two-wire interface modules. If the other modules 110 are capable of communicating using different two-wire interface protocols, the signals provided to the configuration input 102 may change dynamically as needed depending on the then existing operational circumstances. However, the other modules 110 may also include just a single two-wire interface module capable of communicating using a single two-wire interface module. In that case, the signal provided to the configuration input may be static.

Having described the principles of the present invention with respect to FIG. 1, a specific implementation will be described with respect to FIGS. 2A, 2B and 3. Those of ordinary skill in the art will recognize upon reviewing this description that the specific implementation described below represent just one of countless implementation in which the principles of the present invention may be useful.

FIGS. 2A and 2B schematically illustrate a telecommunications system 200A and 200B that includes an optical transceiver 210A and 210 integrated circuit that includes a digital core component 213. The digital core component 213 includes a boot component 221, an FSB slave component 225 and an FSB register array component 226. The slave component 225 and the register array 226 are labeled as FSB components because they may communicate using the FSB two-wire interface. However, the principles of the present invention are not limited to any specific manner of communication within the optical transceiver integrated circuit.

The boot component 221 represents an example of the configurable two-wire interface modules 101 of FIG. 1. The FSB slave component 225, the wire carrying the signal fsb_clk, and the wire carrying the signal fsb_data in FIGS. 2A and 2B represent examples of the two-wire interface module 130, the wire 123, and the wire 124, respectively of FIG. 1. The optional diagnostic mode FSB controller 231 and the EEPROM 234 of FIG. 2A, and the FSB master controller 240 of FIG. 2B represent examples of the other two-wire interface modules 110 of FIG. 1. The wire carrying the signal twi_clk and the wire carrying the signal twi_data in FIGS. 2A and 2B represent examples of the wire 121 and the wire 122 of FIG. 1. The combination of inputs carrying the signals enable_boot and frc_disable_boot in FIGS. 2A and 2B represent examples of the configuration input 102 of FIG. 1.

The FSB slave component 225 reads data from and writes data to specified address locations within the FSB register array component 226 in response to specific FSB commands received from or through the boot component 221. Specifically, the FSB slave component 225 may generate signal mem_addr to address a location within the FSB register array 226, signal wr_enable to enable a write operation, and signal wr_data to specify the data to be written. In addition, the FSB slave component may read signal rd_data to read data from the specified memory address. The FSB register array 226 includes an XOR tree 227 which generates a parity_error signal if there is a parity error detected in the FSB register array. The structure and purpose of the XOR tree 227 will be described further below.

FIG. 2A illustrates a configuration 200A in which there is no controller external to the optical transceiver 210A. Instead, the on-chip boot component 221 serves as a controller. This configuration will be frequently referred to herein as the “internal controller configuration”. In particular, the boot component 221 operates while the optical transceiver integrated circuit is starting up. During startup, the boot component 221 coordinates the proper loading of appropriate instructions from an external EEPROM 234 into the FSB register array 226. Once the startup process completes, the post-amplifier and the laser driver (not shown) are then controlled based on the values within the FSB register array 226.

While booting in the internal controller configuration of FIG. 2A, the boot component 221 is active. Even in this active state, the boot component 221 may be temporarily disabled by asserting the signal frc_disable_boot signal high.

During the boot process (during which time which the boot component 221 is active and not temporarily disabled), the boot component 221 communicates with the memory 234 using the conventional I²C two-wire interface. In particular, the boot control component 223 of the boot component 221 causes the I²C master component 222 of the boot component 221 to communicate with the EEPROM memory 234 using the I²C-compliant clock, data, and write protect signals. The clock signal is represented in FIG. 2A by signal SCL from the EEPROM perspective and signal twi_clk from the boot component perspective. The data signal is represented by signal SDA from the EEPROM perspective and signal twi_data from the boot component perspective. The write disable signal is represented by signal WP from the EEPROM perspective and by signal boot_busy from the boot component 221 perspective. The I²C two-wire interface and these corresponding signals are well-known to those of ordinary skill in the art.

Also during the boot process, the boot component 221 may communicate with and control the FSB slave component 225 using the FSB two-wire interface. In particular, the boot component 221 may use the boot control component 223 to control the FSB master component 224. In response, the FSB master component 224 provides an appropriate clock signal fsb_clk to the FSB slave component 225 and the FSB register array 226. Also, the FSB master component 224 provides a data signal fsb_data to the FSB slave component 225. The fsb_clk and fsb_data signals are provided in conformity with the FSB two-wire interface described below with respect to FIGS. 4, 5A, 5B and 5C.

The boot logic component 223 is configured such that when the boot component 221 is starting up, the appropriate data is loaded from the EEPROM 234 into the FSB register array 226. The values within the FSB register array 226 then control important components of the optical transceiver including the laser driver and post-amplifier (not shown). As previously mentioned, doing so involves communication with the EEPROM 234 using one two-wire interface while communicating with other components (e.g., the FSB slave component 225) using a different two-wire interface.

The internal controller configuration of FIG. 2A also illustrates several other external components. For instance, when optional diagnostic mode FSB controller 231 asserts signal frc_fsb_mode, the signal frc_disable_boot signal is likewise asserted, thereby disabling the boot controller 221. This allows the diagnostic mode FSB controller 231 to communicating straight through the boot component 221 and to the FSB slave component 225 using the FSB two-wire interface using clock signal fsb_clk and data signal fsb_data. In other words, the boot controller 221 mirrors any signals received to the other side. In this configuration the diagnostic mode FSB controller 231 behaves as an FSB master component. Accordingly, the diagnostic mode FSB controller 231 may control the FSB slave component 225 to thereby cause appropriate diagnostics to be made on the FSB register array 226.

Also, the EEPROM programming interface 232 may likewise assert the frc_disable_boot signal to at least temporarily disable any boot operations. The EEPROM programming interface 232 may then communicate with the EEPROM 234 using the SCL and SDA signals in accordance with the conventional I²C two-wire interface. By disabling the boot process during the EEPROM programming, the risk of contention on the clock signal SCL and data signal SDA is significantly reduced. An optional host interface to EEPROM 233 may also be provided to allow a host computing system to interface with the EEPROM 234.

Due to certain environmental conditions, it is conceivable that the data within the FSB register array 226 may become corrupted. This could have a harmful effect on the post-amplifier and laser driver since the physical operation of the post-amplifier and laser driver is directly dependent upon the values within the FSB register array 226. The optical transceiver 210A has a mechanism for recovering from register array corruption even without the clock being initially on.

Specifically, each byte in the register array 226 has a corresponding parity bit. For each byte, the XOR tree 227 includes an XOR sub-tree that logically XOR's each of the bits in the byte to generate an actual byte parity bit. The actual byte parity bit will be high if the number of logical one's in the byte is odd, and low if the number of logical one's in the byte is even, regardless of whether or not the byte is corrupted.

The actual byte parity bit is XOR'ed with an ideal byte parity bit stored for each byte. The ideal byte parity bit is high if the number of logical one's in the byte should be odd absent any corruption, and low if the number of logical one's in the byte should be even absent any corruption. For each byte, the actual byte parity bit is logically XOR'ed with the ideal byte parity bit to generate a byte parity error bit. The byte parity error bit will only be high if the corresponding byte has become corrupted. The various byte parity bits may be logically OR'ed (or XOR'ed) to generate the parity_error signal in FIG. 2A. Thus, the parity_error signal will only be high if the FSB register array has experienced corruption. In response to a high parity_error signal, the boot control component 223 asserts the en_boot_clk signal, which activates the oscillator 228 to thereby reinitiate the boot process. Rebooting should then initialize the register array to appropriate values to thereby allow normal operation to proceed. Once again, after the boot process, the boot clock may be shut off to reduce noise.

The boot controller 221 permits the internal controller configuration of FIG. 2A in which the controller, the post-amplifier, and the laser driver are all on the same optical transceiver integrated circuit. However, the boot controller 221 may also provide flexibility to have an external controller. FIG. 2B shows such a configuration 200B in which the FSB master controller 240 communicates directly through the boot component 221 to the FSB slave component 225 using clock signal fsb_clk and data signal fsb_data that conform to the FSB two-wire interface. In this case, the enable_boot signal is low thereby rendering the boot clock and the boot controller inactive. Furthermore, the frc_disable signal is low. The configuration of FIG. 2B may also be referred to herein as the “external controller configuration”. The FSB master component 240 may operate to load, monitor, and update the FSB register array 226 via the FSB slave component 225.

The optical transceiver integrated circuit 210A of FIG. 2A may be physically structured identically to the optical transceiver integrated circuit 210B of FIG. 2B. The difference is in the value of the enable_boot signal and possibly the frc_disable_boot signal. Alternatively, the enable_boot signal may be the same in both FIGS. 2A and 2B, with the signal frc_disable_boot representing an override signal that enables the override configuration illustrated in FIG. 2B. Accordingly, the optical receiver 210 is flexible enough to accommodate both the internal controller configuration and the external controller configuration. Furthermore, this flexibility may be obtained by simply asserting appropriate configuration signals enable_boot and frc_disable_boot to the integrated circuit.

FIG. 3 illustrates a configuration 300 of the core component 213 in further detail. The I²C master component 222, the boot control component 223 and the FSB master component 224 are collectively illustrated in FIG. 3 as boot state machine 310. In the internal controller configuration, when the frc_disable_boot signal is low and the enable_boot signal is high, the boot state machine has access to the boot clock signal boot_clk. During the boot process, the boot state machine 310 operates as an FSB master component for the FSB slave component 225.

Specifically, the boot state machine 310 pulls signal fsb_slave_mode_sel low. This causes the upper input terminal (marked “0”) of each of the multiplexers 311 through 316 to by coupled to its corresponding output terminal. The operation during this internal controller configuration will now be described in further detail with respect to FIG. 3.

The boot state machine 310 generates a clock signal boot_fsb_clk (out) that is derived from the boot clock signal boot_clk. This clock signal boot_fsb_clk (out) is then provided through the multiplexer 311 to become the FSB clock signal fsb_clk. The boot state machine 310 also may generate a data signal in accordance with the FSB two-wire interface and timed in accordance with the FSB clock signal. This data signal is represented by boot_fsb_do (out) passing through the multiplexer 314 to become signal fsb_di provided to the FSB slave component 225. The FSB slave component 225 may transmit data back to the state machine using signal fsb_do and using output enable signal fsb_do_oe. Accordingly, the boot state machine 310 is fully capable of acting as an FSB master component for the FSB slave component 225 using the configuration illustrated in FIG. 3.

During the boot process, the boot state machine 310 is also capable of communicating with the EEPROM using the I²C two-wire interface. Specifically, a logical zero is asserted through the upper input terminal of the multiplexer 312 as signal TWI_CO. A clock signal boot_scl generated by the boot state machine 310 serves as the clock signal for the I²C interface. If the clock signal boot_scl is high, the clock signal is inverted to low through inverter 321 to provide a low signal to the upper input terminal of multiplexer 313. This low signal is provided to driver 322 thereby isolating low signal TWI_CO from the output terminal of the driver 322. Accordingly, the signal twi_clk (the actual clock signal on the clock wire to the EEPROM) is permitted to pull high through pull-up resistor 323. If the clock signal boot_scl is low, the clock signal is inverted to high through inverter 321 to provide a high signal to the upper input of multiplexer 313. This high signal is provided to driver 322 thereby causing the driver to pass signal TWI_CO (which is low) as the clock signal twi_clk provided to the EEPROM. This emulates an open-drain driver. Accordingly, the I²C clock signal twi_clk provided to the EEPROM follows the I²C clock signal boot_scl generated by the boot state machine 310.

Similarly, from the I²C data viewpoint, a logical zero is asserted through the upper input terminal of the multiplexer 315 as signal TWI_DO. A data signal boot_sda generated by the boot state machine 310 serves as the data signal generated by the boot component 221 for the I²C interface with the EEPROM. If the data signal boot_sda is high, the data signal is inverted to low through inverter 324 to provide a low signal to the upper input of multiplexer 316. This low signal is provided to driver 325 thereby isolating low signal TWI_DO from the output terminal of the driver 325. Accordingly, the signal twi_data (the actual data signal on the data wire to the EEPROM) is permitted to pull high through pull-up resistor 326. If the data signal boot_sda is low, the data signal is inverted to high through inverter 324 to provide a high signal to the upper input of multiplexer 316. This high signal is provided to driver 325 thereby causing the driver to pass signal TWI_DO (which is low) as the data signal twi_data provided to the EEPROM. This emulates an open-drain driver while still maintaining the capability to directly drive the interface as desired. Accordingly, the I²C data signal twi_data provided to the EEPROM follows the I²C data signal boot_data generated by the boot state machine 310. In the other direction, the boot state machine 310 may also monitor data on the I²C data wire. The signal twi_data is provided through the driver 327 as the I²C data input signal boot_sda to the boot state machine 310.

In summary, during the boot process, the boot state machine 310 serves as an FSB master for the FSB slave component 225, and as an I²C master for the external EEPROM. On the other hand, if the boot state machine 310 is not active (e.g., because the enable_boot signal is low, or because the frc_disable_boot signal is high), the data state machine permits off-chip components such as a controller to pass through communications through the boot component 221 directly to the FSB slave component 225. This serves the external controller configuration model of FIG. 2B.

In the external controller configuration mode, the boot state machine asserts the fsb_slave_mode_sel signal high. This couples the lower input terminal of the multiplexers 311 through 316 to their respective output terminals. Accordingly, the clock signal twi_clk generated by the off chip controller passes directly through the driver 328 and through the multiplexer 311 to the FSB slave component 225 and FSB register array 226. The driver 322 is off and thus the boot state machine 310 does not communicate any clock signals.

The data signals twi_data generated by the external controller passes through the driver 327, through the multiplexer 314, and to the FSB slave component 225. If the FSB slave component 225 generates a high output enable signal fsb_do_eo, the driver 325 is on, and the data signal fsb_do generated by the FSB slave component 225 is provided through the multiplexer 315 and through the driver 325 to generate the data signal twi_data. Accordingly, in this configuration, the external controller communicates directly with the FSB slave component.

Accordingly, a specific example of a configurable two-wire interface module (specifically, the boot component 221) has been described. The boot component 221 benefits by being able to change the protocol used to communicate. For example, in the internal controller configuration of FIG. 2A, the boot component 221 may use two wire to communicate with the optional diagnostic mode FSB controller 231 using FSB, and with the EEPROM 234 over the same two wires using I²C. Also, in the external controller configuration of FIG. 2B, the boot component 221 may communicate with the FSB master controller 240 using the FSB protocol. Accordingly, the boot component 221 has gained great flexibility in communication by implementing the principles of the present invention.

It should be noted that while some embodiments of the invention are well-suited for use in conjunction with a high speed data transmission system conforming to the Gigabit Ethernet (“GigE”) physical specification, such operating environment is exemplary only and embodiments of the invention may, more generally, be employed in any of a variety of high speed data transmission systems, some of which may have line rates up to, or exceeding, 1 G, 2.5 G, 4 G, 10 G and higher bandwidth fiber channels. For example, some embodiments of the invention are compatible with the Fibre Channel (“FC”) physical specification.

Further, embodiments of the invention may be implemented in various ways. By way of example, some embodiments of the PA/LD are implemented in Small Form Factor Pluggable (“SFP”) bi-directional transceiver modules. Such transceiver modules are configured for GigE and/or FC compliance. Exemplarily, such transceiver modules are capable of transmitting and/or receiving at a wavelength of about 850 nm. Moreover, these transceiver modules can operate over a wide range of temperatures. For example, some of such transceiver modules are effective over a temperature range of about 80° C., such as from about −10° C. to about +70° C. Of course, such embodiments and associated operating parameters are exemplary only, and are not intended to limit the scope of the invention in any way. For example, the principles of the present invention may be implemented in laser transmitter/receivers of any form factor such as XFP, SFP and SFF, without restriction.

Having described the general principles of the present invention with respect to FIG. 1, and a specific implementation with respect to FIGS. 2A, 2B and 3, the specific FSB two-wire interface protocol, will now be described with respect to FIGS. 4, 5A, 5B and 5C.

FIG. 4 illustrates a schematic diagram of a data structure 400 of a frame of an FSB two-wire interface mentioned briefly above with respect to FIGS. 2A, 2B and 3. The frame 400 includes a preamble field 401, a frame start field 402, an operation field 403, a device identifier field 404, an optional extended field 405, a basic address field 406, a first bus turnaround field 407, and optional bus hold field 408, a data field 409, an optional Cyclic Redundancy Checking (CRC) field 410, a second bus turnaround field 411, an optional acknowledgement field 412, an optional error status field 413, and a frame end field 414. As will be explained in further detail below, the frame 400 is designed so that within any component's turn for control of the data wire, there is a guaranteed zero interspersed more frequently than the length of the preamble.

The bus turnaround fields allow for optional transfer of data wire control between the FSB master component and the FSB slave component. Accordingly, the FSB master component may be providing some of the frame, while the FSB slave component may be providing other portions of the frame. Note that while a specific ordering of fields is shown in FIG. 4, there is considerable flexibility as to the ordering of the fields without adversely affecting the functionality of the frame 400 as will be apparent to those of ordinary skill in the art after having reviewed this description.

FIGS. 5A, 5B and 5C show specific embodiments of the frame 400. Some of the optional fields are included or excluded depending on the operation being performed. FIG. 5A illustrates an example frame in which the operation is to write or read using an extended field, and using Cyclic Redundancy Checking (CRC) and acknowledgements. FIG. 5B illustrates an example frame in which the operation is to write or read without using an extended field, and using CRC and acknowledgements. FIG. 5C illustrates an example frame in which the operation is to write or read without using an extended field, and without using CRC and acknowledgements.

Since FIG. 5A illustrates the most inclusive frame example, the various fields of the frame will be described in most detail with respect to FIG. 5A. The frame of FIG. 5A includes 75 bits corresponding to bits 74:0, regardless of whether the operation is a read operation as specified in line 501A or a write operation as specified in line 504A.

Line 502A illustrates an asterix at time increments when the FSB master component is in control of the data wire during a read operation, and otherwise contains a period. “MOE” at the beginning of the line stands for “Master data Output Enable”. Line 503A illustrates an asterix at time increments when the FSB slave component is in control of the data wire during a read operation, and otherwise contains a period. “SOE” at the beginning of the line stands for “slave data Output Enable”.

Similarly, line 505A illustrates an asterix at time increments when the FSB master component is in control of the data wire during a write operation, and otherwise contains a period. Furthermore, line 506A illustrates an asterix at time increments when the FSB slave component is in control of the data wire during a write operation, and otherwise contains a period. Lines 507A and 508A will be explained further below.

The frame begins with a preamble as represented in FIG. 5A by the 15 bits 74:60. This preamble is an example of the preamble field 401 of FIG. 4. The data wire 132 is left in a high impedance state. Absent any assertion on the data wire by FSB master component or any of the FSB slave component(s), the data wire is held to a logical one by a pull-up resistor (see resistor 326 of FIG. 3). When the FSB master component determines that a communication is to be made with FSB slave component, the FSB master component generates a clock signal on the clock wire. At the same time, each clock cycle, the FSB master component monitors the data wire for fifteen consecutive ones. The high impedance data wire does allow for proper assertion of data on the data wire despite the presence of the pull-up resistor.

If the FSB master component is not asserting anything on the data wire during the preamble phase, then the data wire should carry a logical one if none of the FSB slave components is transmitting the remainder of a prior frame on the data wire. Alternatively, even if the FSB master component may be asserting a logical one on the data wire during at least some of the preamble, then the data wire should still be carrying the logical one during the preamble phase assuming that none of the FSB slave components is transmitting on the data wire at that time. On the other hand, the frame is designed such that neither a FSB master nor a FSB slave transmits more than fifteen consecutive logical ones in a row when transmitting none-preamble portions of the frame.

Given the above, if the FSB master component detects a logical zero on the data wire while monitoring the data wire during the preamble phase of the frame, then a FSB slave component is likely communicating on the data wire. Whether or not logical zeros are detected, the FSB master component will wait until there are fifteen cycles of logical ones on the data wire before continuing with the frame. Due to the interspersed guaranteed zeros within the frame design, it is then that the FSB master component may safely transmit on the data wire with little risk that one of the FSB slave component(s) is also communicating on the data wire.

Accordingly, even if there is an error in synchronization between the FSB master component and the FSB slave component, synchronization is reacquired as the FSB master component waits for the FSB slave component to complete its use of the data wire before proceeding. The FSB slave component also monitors the data wire for fifteen consecutive ones. Accordingly, when the FSB slave component encounters fifteen consecutive ones, the FSB slave component awaits the rest of the frame. Accordingly, since the FSB slave component is not using the data wire at the time of the preamble regardless of whether the FSB slave component had previously lost synchronization with the FSB master component, the FSB slave component should be listening for the preamble at the preamble phase of the frame. Accordingly, the FSB slave component reacquires synchronization with the FSB master component.

Therefore, the preamble is significantly shortened while further retaining error recovery from loss of synchronization. Furthermore, since the data wire is biased high due to the pull-up resistor, the FSB master component need not assert any data on the data wire during the preamble phase, thereby reducing power requirements.

Once the preamble phase is completed (i.e., the FSB master component has detected at least fifteen consecutive binary ones on the data wire), the FSB master component asserts a logical one on the data wire as represented by bit 59. This turns on the output enable for the FSB master component, and maintains the data wire at the logical one for one more cycle.

The FSB master component then transmits two start of frame bits 58:57 which are guaranteed logical zeros. These start of frame bits are an example of the start of frame field 402 of FIG. 4. After the preamble phase is complete, the FSB slave component(s) are listening for these logical zeros. When they arrive, the FSB slave component(s) understand that the two logical zeros correspond to the start of the rest of the frame, thereby attaining synchronization. Two logical zeros are provided in order to provide sufficient statistical probability that the two logical zeros do indeed represent the start of a frame.

The FSB master component then transmits three operation code bits 56:54. These operation code bits are an example of the operation field 403 of FIG. 4. The three operation code bits would normally permit eight unique operations to be identified. However, in order to guarantee at least one logical zero in this operation code, the number of operations represented by the three bits is six, with the other two permutations of the operation code being reserved. In the illustrated example, bit sequences 011 and 111 are reserved.

In the example, operations bits 000 mean a write operation without using an extended field (explained further below), but with CRC checking and acknowledgements. A frame for this operation is shown in line 504B of FIG. 5B (see bits 47:45 of line 504B).

Operation bits 001 mean a write operation using an extended field, and with CRC checking and acknowledgments. A frame for this operation is shown in line 504A of FIG. 5A (see bits 56:54 of line 504A).

Operation bits 010 mean a write operation without using an extended field, and without CRC checking and acknowledgments. A frame for this operation is shown in line 504C of FIG. 5C (see bits 35:33 of line 504C).

Operations bits 100 mean a read operation without using an extended field, but with CRC checking and acknowledgements. A frame for this operation is shown in line 501B of FIG. 5B (see bits 47:45 of line 501B).

Operation bits 101 mean a read operation using an extended field, and with CRC checking and acknowledgments. A frame for this operation is shown in line 501A of FIG. 5A (see bits 56:54 of line 501A).

Operation bits 110 mean a read operation without using an extended field, and without CRC checking and acknowledgments. A frame for this operation is shown in line 501C of FIG. 5C (see bits 35:33 of line 501C).

Note how the structure of the frame differs depending on the operation. Accordingly, the FSB master component controls which frame structure is to be used by controlling the operation code. Upon reading the operation code, the FSB slave component is configured to expect the frame structure corresponding to the operation code. Accordingly, the FSB master component may dynamically adjust the frame structure as needed. In times when bandwidth is more of a concern, the shorter and less reliable frame structure (e.g., FIG. 5C) may be used. In times when reliability is more of a concern, the longer and more reliable frames structure (e.g., FIGS. 5A and 5B) may be used. When further bits are needed for any reason, the frame with the extended field (e.g., FIG. 5A) may be used. When these further bits are not needed, the frames without the extended field (e.g., FIGS. 5B and 5C) may be used.

Referring back to FIG. 5A, after the FSB master component transmits the operation code (i.e., bits 56:54), the FSB master component transmits a three bit device identifier corresponding to bits 53:51. These device identifier bits are an example of the device identifier field 404 of FIG. 4. The device identifier identifies which FSB slave component of the FSB slave component(s) that the FSB master component is to communicate with. Since three bits are used for the device identifier in this embodiment, there may be up to eight FSB slave components in this embodiment (or seven FSB slave components if the FSB master component is to also have an address for self-diagnostic purposes).

Until the time that the device identifier bits are provided, each of the FSB slave component(s) was monitoring the communications over the data wire. However, upon receiving the device identifier bits, the FSB slave component may identify itself as corresponding to the device identifier. The other FSB slave components, if any, may ignore the rest of the frame. Even though the other FSB slave components ignore the rest of the frame, the other FSB slave components may immediately continue monitoring the data wire for another preamble indicative of another frame being transmitted. Alternatively, the other FSB slave component may initiate such monitoring after clock signals are once again asserted on the clock wire indicating that the next frame is about to begin.

After the FSB master component asserts the device identifier bits 53:51 on the data wire, the FSB master component asserts eight bits 50:43 that correspond to an extended field. These extended bits are an example of the extended field 405 of FIG. 4. In the case of FIG. 5A, the operation code causes the FSB slave component to expect these extended bits. The FSB master component then transmits a guaranteed logical zero as bit 42 thereby ensuring that fifteen consecutive logical ones on the data wire means that a frame is in the preamble phase to thereby support the above-described synchronization recovery mechanism.

The extended field may include any extended bits that are useful so long as the meaning of the bits is commonly recognized by both communicating components. For example, some or all of the extended field may represent an extended address for use when communicating with FSB slave components having larger address spaces. Alternatively or in addition, some or all of the extended field may represent an extended operation code where further operation types are desired.

The FSB master component then asserts eight bits 41:34 that correspond to the basic address. These eight bits 41:34 are an example of the basic address field 406 of FIG. 4. If all of the extended field represents an extended address, the FSB slave component may use all of the sixteen bits 50:43 and 41:34 to properly identify the address space that applies to the operation.

The next bit 33 in the frame is a first turnaround bit and represents an example of the first turnaround field 407 of FIG. 4. The turnaround bits are somewhat unique in that they allow for optional exchange of control of the data wire between the FSB master component and the FSB slave component.

In the case of a write operation, the first turnaround bit 33 is a logical zero, indicating that control is to stay for the time being with the FSB master component. Accordingly, referring to line 505A of FIG. 5A, the FSB master component retains control of the data wire through the turnaround bit 33; and referring to line 506A of FIG. 5A, the FSB slave component does not gain control of the data wire through the turnaround bit 33. This retaining of control is appropriate since the FSB master component is the one that is providing that data that is the subject of a write operation initiated by the FSB master component.

On the other hand, in the case of a read operation, the first turnaround bit 33 is a high-z, meaning that the data wire is permitted to float at its high impedance state in which none of the FSB master component or FSB slave component is actively asserting bits on the data wire. This represents that control of the data wire has passed to the FSB slave component (see lines 502A and 503A of FIG. 5A). This transfer of control is appropriate since the FSB slave component is the one that is providing that data that is the subject of a read operation initiated by the FSB master component.

In the case of a read operation, the FSB slave component then has the opportunity to pause the frame in cases in which the FSB slave component is not ready to continue at this stage. The FSB slave component asserts the bus hold bit 32 to a logical zero if it is not ready to continue. When ready to continue, the FSB slave component asserts a logical one if it is ready to proceed thereby given the FSB master component notice that the FSB slave component is ready to continue. This provides the FSB slave component with an option to pause the frame when the FSB slave component is not ready to continue for the time being. An additional pausing option available to the FSB slave component is described below with respect to the acknowledgement bit. In the case of a write operation, the bus hold bit 32 is a guaranteed logical one. The bus hold bit 32 is an example of the bus hold field 408 of FIG. 4.

In the case of a read operation, after the FSB slave component transmits the bit hold bit 32, the FSB slave component transmits the eight most significant bits followed by a guaranteed zero bit. In the case of a write operation, after the FSB master component transmits the bit hold bit 32, the FSB master component transmits the eight most significant bits followed by the guaranteed zero bit. In either case, the eight most significant bits are represented by bits 31:24, and the following guaranteed zero bit is represented by bit 23.

In the case of a read operation, after the FSB slave component transmits the guaranteed zero bit 23, the FSB slave component transmits the eight least significant bits followed by another guaranteed zero bit. In the case of a write operation, after the FSB master component transmits the guaranteed zero bit 23, the FSB master component transmits the eight least significant bits followed by the other guaranteed zero bit. In either case, the eight least significant bits are represented by bits 22:15, while the other guaranteed zero bit is represented by bit 14. The combination of the data bits 31:24 and 22:15 are an example of the data field 409 of FIG. 4.

In the case of a read operation, after the FSB slave component transmits the guaranteed zero bit 14, the FSB slave component transmits eight bits of Cyclic Redundancy Checking (CRC) data corresponding to bits 13:06. The CRC bits are one example of the CRC field 410 of FIG. 4. Using all the bits after the start of frame bits 58:57 and prior to the CRC bits 13:06, both the FSB master component and the FSB slave component calculate CRC data as shown in line 507A. When the FSB master component receives the CRC bits 13:06 back from the FSB slave component, the FSB master component then compares the CRC information generated by both the FSB master component and the FSB slave component as represented by line 508A. If there is a mismatch, then there has likely been an error in transmission, and the FSB master component may begin the frame again after the current frame is ended.

In the case of a write operation, after the FSB master component transmits the guaranteed zero bit 14, the FSB master component transmits the CRC bits 13:06. Once again, both the FSB master component and the FSB slave component calculate their CRC data. When the FSB slave component receives the CRC bits 13:06 from the FSB master component, the FSB slave component then compares the CRC information generated by both the FSB master component and the FSB slave component. If there is a mismatch, then there has likely been an error in transmission, and the FSB master component may begin the frame again after the current frame is ended after the FSB master component has been notified of the error. In some cases, an erroneous write operation may have catastrophic (or at least harmful) effects. For example, if the erroneous write operation was for setting a laser bias current, the laser strength could be too strong such that signal distortion occurs. Accordingly, reliable communications is important in such circumstances. The FSB slave component may elect to suppress a write operation when such an error is detected.

After the CRC bits 13:06, there is a second turnaround bit 05. This second turnaround bit is an example of the second turnaround field 411 of FIG. 4. This turnaround operation allows control of the data wire to be given to the FSB slave component if control is not there already. This allows the FSB slave component to give reliability information back to the FSB master component.

In the case of a read operation, control of the data wire has already been passed to the FSB slave component using the first turnaround bit. Accordingly, this second turnaround bit is a logical zero indicating no change in control of the data wire. On the other hand, in the case of a write operation, control of the data wire was not previously given to the FSB slave component using the first turnaround bit. Accordingly, the data wire is allowed to float at its high impedance state indicating a transfer of control of the data wire to the FSB slave component. Accordingly, after the second turnaround bit 05, the FSB slave component has control of the data wire regardless of whether the operation is a read operation or a write operation.

After the second turnaround bit 05, the FSB slave component asserts an acknowledgment bit 04, which is an example of the acknowledgement field 412 of FIG. 4. This acknowledgement bit may represent whether or not the operation was successful. In this case, a logical one means successful completion of the operation. Had the FSB slave component been too busy to respond to the FSB master component, the FSB slave component may assert a logical zero for the acknowledgement bit 04, thereby forcing the FSB master component to reinitiate the frame. Accordingly, the acknowledgment bit 03, and the bit hold bit 32 provide a way for the FSB slave component to address the situation where it cannot respond to the request.

The FSB slave component then asserts a guaranteed zero bit 03, followed by an error bit 02, which is an example of the error field 413 of FIG. 4. The error field may indicate whether or not there was an error in CRC checking and/or a violation of the protocol (e.g., a logical one is detected where a logical zero should occur). In the case of a read operation, the FSB master component will already be in possession of CRC data sufficient to make this determination. However, in the case of a write operation, the FSB slave component is the one that made the comparison of CRC data. Accordingly, it is at this time that the FSB slave component notifies the FSB master component of any mismatch in CRC data. A mismatch would result in the FSB master component reinitiating the frame. The presence of CRC and acknowledgment information in the frame allows for more reliable communication between the FSB master component and the FSB slave component(s).

The FSB slave component then asserts two end of frame bits 01:00, which indicates the end of the frame. The first bit 01 is a logical one, which forces the data bus immediately to a logical one. In the second bit, the data bus is allowed to float at its high impedance state, ready for the next frame to begin. If the first bit 01 were a logical zero, it may take some time for the pull-up resistor to pull the data wire up to a voltage level that could be interpreted as a logical one. Accordingly, the setting of the first bit 01 at a logical one means that the next frame may begin sooner, thereby improving performance.

FIG. 5B illustrates an example frame in which the operation is to write or read without using an extended field, and using CRC and acknowledgements. The frame of FIG. 5B is similar to that described above with respect to FIG. 5A, except that the operation is to write or read without using the extended field. Accordingly, bits 50:42 of FIG. 5A are absent from FIG. 5B and the bits are renumbered accordingly.

FIG. 5C illustrates an example frame in which the operation is to write or read without using an extended field, and without using CRC and acknowledgements. The frame of FIG. 5C is similar to that described above with respect to FIG. 5A, except that the operation is to write or read without using the extended field. Accordingly, bits 50:42 of FIG. 5A are absent from FIG. 5B. Furthermore, there is no reliability information within the frame. Hence, bits 13:02 of FIG. 5A are absence from FIG. 5C. The absence from FIG. 5C of bits that are present in FIG. 5A warrants the renumber of the remaining bits in FIG. 5C.

The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes, which come within the meaning and range of equivalency of the claims, are to be embraced within their scope. 

1. An optical transceiver, the optical transceiver including: a laser driver; a post-amplifier; and a digital core component, wherein the digital core component includes: a register array component, wherein the register array component is configured to store one or more control values which control the laser driver and post-amplifier; a slave component, wherein the slave component is configured to read data from and write data to the register array component; and a boot component, wherein the boot component includes: a two-wire interface module, the two-wire interface module including: a first two-wire interface, wherein the first two-wire interface is configured to transmit data to and receive data from the slave component; and wherein the first two-wire interface includes:  a first interface wire; and  a second interface wire; a second two-wire interface, wherein the second two-wire interface is configured to transmit data to and receive data from an external control source; and wherein the second two-wire interface includes:  a third interface wire; and  a fourth interface wire; a configuration input; and a logic component configured to:  communicate over the first two-wire interface with the slave component using a first two-wire interface protocol;  communicate over the second two-wire interface using a first two-wire interface protocol when the configuration input receives a first input signal correlating to the first two-wire interface protocol;  communicate over the second two-wire interface using the second two-wire interface protocol when the configuration input receives a second input signal correlating to the second two-wire interface protocol, wherein the slave component includes a FSB slave component and the first two-wire interface protocol includes the Finisar Serial Bus (FSB) two-wire interface protocol and the Finisar Serial Bus (FSB) two-wire interface protocol includes: a preamble field; a frame start field; an operation field; a device identifier field; a basic address field; a first bus turnaround field; a data field; a second bus turnaround field; and a frame end field.
 2. An optical transceiver in accordance with claim 1, wherein the Finisar Serial Bus (FSB) two-wire interface protocol further includes: an extended field; an bus hold field; an cyclic redundancy checking field; an acknowledgement field; and an error status field.
 3. An optical transceiver in accordance with claim 1, wherein the logic component includes a master component, wherein the master component is configured to communicate with the slave component over the first two-wire interface module and wherein: the first wire is configured to transmit a clock signal; and the second wire is configured to transmit a data signal. 